package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName driver_info
 */
@TableName(value ="driver_info")
public class DriverInfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String drivername;

    /**
     * 
     */
    private String driverphone;

    /**
     * 
     */
    private String drivercar;

    /**
     * 
     */
    private String licenseplate;

    /**
     * 
     */
    private String drivercode;

    /**
     * 
     */
    private String carcode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getDrivername() {
        return drivername;
    }

    /**
     * 
     */
    public void setDrivername(String drivername) {
        this.drivername = drivername;
    }

    /**
     * 
     */
    public String getDriverphone() {
        return driverphone;
    }

    /**
     * 
     */
    public void setDriverphone(String driverphone) {
        this.driverphone = driverphone;
    }

    /**
     * 
     */
    public String getDrivercar() {
        return drivercar;
    }

    /**
     * 
     */
    public void setDrivercar(String drivercar) {
        this.drivercar = drivercar;
    }

    /**
     * 
     */
    public String getLicenseplate() {
        return licenseplate;
    }

    /**
     * 
     */
    public void setLicenseplate(String licenseplate) {
        this.licenseplate = licenseplate;
    }

    /**
     * 
     */
    public String getDrivercode() {
        return drivercode;
    }

    /**
     * 
     */
    public void setDrivercode(String drivercode) {
        this.drivercode = drivercode;
    }

    /**
     * 
     */
    public String getCarcode() {
        return carcode;
    }

    /**
     * 
     */
    public void setCarcode(String carcode) {
        this.carcode = carcode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DriverInfo other = (DriverInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDrivername() == null ? other.getDrivername() == null : this.getDrivername().equals(other.getDrivername()))
            && (this.getDriverphone() == null ? other.getDriverphone() == null : this.getDriverphone().equals(other.getDriverphone()))
            && (this.getDrivercar() == null ? other.getDrivercar() == null : this.getDrivercar().equals(other.getDrivercar()))
            && (this.getLicenseplate() == null ? other.getLicenseplate() == null : this.getLicenseplate().equals(other.getLicenseplate()))
            && (this.getDrivercode() == null ? other.getDrivercode() == null : this.getDrivercode().equals(other.getDrivercode()))
            && (this.getCarcode() == null ? other.getCarcode() == null : this.getCarcode().equals(other.getCarcode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDrivername() == null) ? 0 : getDrivername().hashCode());
        result = prime * result + ((getDriverphone() == null) ? 0 : getDriverphone().hashCode());
        result = prime * result + ((getDrivercar() == null) ? 0 : getDrivercar().hashCode());
        result = prime * result + ((getLicenseplate() == null) ? 0 : getLicenseplate().hashCode());
        result = prime * result + ((getDrivercode() == null) ? 0 : getDrivercode().hashCode());
        result = prime * result + ((getCarcode() == null) ? 0 : getCarcode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", drivername=").append(drivername);
        sb.append(", driverphone=").append(driverphone);
        sb.append(", drivercar=").append(drivercar);
        sb.append(", licenseplate=").append(licenseplate);
        sb.append(", drivercode=").append(drivercode);
        sb.append(", carcode=").append(carcode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}